<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="div1"></div>
    <script>
      //map数据结构
      // var m =new Map([
      //     ['name','jack'],
      //     ['age',20],
      //     [11,11],
      // ])
      // m.set('sex','man')
      // console.log(m);
      // console.log(m.get(11));
      let oDiv = document.getElementById("div1");
      let obj = {
        [oDiv]: "hello",
      };
      console.log(Object.keys(obj));
      var m = new Map([[oDiv, "hello"]]);
      for (var v of m.keys()) {
        console.log(v);
      }
    </script>
  </body>
</html>
